package morenoapp.components.thinkgraphv2.components;

import morenoapp.model.view.listeners.MorenoViewChangeListener;

/**
 *
 * @author dmitry.mamonov
 */
public class ConfigListener implements MorenoViewChangeListener {
    FirePropertyChange fireChange;

    public ConfigListener(FirePropertyChange _fireChange) {
        this.fireChange = _fireChange;
    }

    @Override
    public void onDisplayConfigChanged(String property, Object oldValue, Object newValue) {
        System.out.println(">> fire "+property+" "+oldValue+" -> "+newValue);
        fireChange.firePropertyChangePublic(property, oldValue, newValue);
    }
}
